﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Root.master" AutoEventWireup="true" CodeBehind="NewProduct.aspx.cs" Inherits="WebApp.NewProduct" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Content" runat="server">
    <table>
    <tr>
    <td style="width: 461px"> </td>
        <td style="width: 203px"><asp:Label ID="Label1" runat="server" Text="SẢN PHẨM MỚI"> </asp:Label>
            <br />
            <br />
        </td>
    </tr>
</table>
<dx:ASPxDataView ID="ASPxDataView1" runat="server" 
    DataSourceID="XmlDataSource1" RowPerPage="2" Width="100%" PagerAlign="Justify" 
    AlwaysShowPager="True" ColumnCount="4">
    <ItemTemplate>
        <table>
            <tr>
                <td colspan="3">
                    <dx:ASPxImage ID="imgCover" runat="server" ImageUrl='<%# Eval("Image") %>' 
                    Width="200px" Height="135px" />
                </td>
            </tr>
                <tr>
                <td style="width: 127px"><b>Tên Sản Phẩm:</b></td>
                <td style="width: 160px"><dx:ASPxLabel ID="lblName" runat="server" Text='<%# Eval("ProductName") %>' /></td>
            </tr>
                <tr>
                <td style="width: 127px"><b>Giá:</b></td>
                <td style="width: 160px"><dx:ASPxLabel ID="lblPrice" runat="server" Text='<%# Eval("Price") %>' /></td>
            </tr>
                <tr>
                <td style="width: 127px"><b>Giá Khuyến mãi:</b></td>
                <td style="width: 160px"><dx:ASPxLabel ID="lblNumber" runat="server" Text='<%# Eval("ProPrice") %>' /></td>
            </tr>
            <tr>
				<td align ="center" styte = "Width:127px">
                <asp:Button runat = "server" ID = "button1" Text = "Chi tiết..." PostBackUrl = '<%# "ProductDetail.aspx?ProductID=" + Eval("ProductID") %>' ></asp:Button>
                </td>
		    </tr>  
        </table>
    </ItemTemplate>
<PagerSettings ShowNumericButtons="true">
    <AllButton Visible="False" />
    <Summary Visible="false" />
    <PageSizeItemSettings Visible="true" ShowAllItem="true" />
</PagerSettings>
</dx:ASPxDataView>
<asp:XmlDataSource ID="XmlDataSource1" runat="server" 
        DataFile="~/App_Data/NewProduct.xml" XPath="NewProduct.xml"></asp:XmlDataSource>
</asp:Content>
